package com.tdkj.model.risevalue;

import java.sql.Timestamp;
import java.util.Date;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.tdkj.model.base.BaseEntity;
import com.tdkj.model.user.BeanUser;

/**
 * XnkyInfoAuction2user entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "risevalue_advert_auction_bid_info")
public class BeanAdvertAuctionBidInfo extends BaseEntity implements java.io.Serializable {

	private BeanAdvertAuctionInfo auctioninfo;
	private int price;//出价
	private Timestamp auctiontime;
	private String status;
	private BeanUser user;

	// Constructors

	/** default constructor */
	public BeanAdvertAuctionBidInfo() {
	}


	/**
	 * @return the auctionInfo
	 */
	@ManyToOne(cascade={CascadeType.REFRESH},fetch=FetchType.LAZY)
	@JoinColumn(name="auctionInfoid")
	public BeanAdvertAuctionInfo getAuctioninfo() {
		return auctioninfo;
	}

	/**
	 * @param auctionInfo the auctionInfo to set
	 */
	public void setAuctioninfo(BeanAdvertAuctionInfo auctioninfo) {
		this.auctioninfo = auctioninfo;
	}

	public int getPrice() {
		return this.price;
	}

	public void setPrice(int price) {
		this.price = price;
	}
	public Timestamp getAuctiontime() {
		return this.auctiontime;
	}

	public void setAuctiontime(Timestamp auctiontime) {
		this.auctiontime = auctiontime;
	}

	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	@ManyToOne(cascade={CascadeType.REFRESH},fetch=FetchType.LAZY)
	@JoinColumn(name="userId")
	public BeanUser getUser() {
		return user;
	}

	public void setUser(BeanUser user) {
		this.user = user;
	}
	
	

}